package com.tank;

import com.tank.thrift.DataException;
import com.tank.thrift.Person;
import com.tank.thrift.PersonService;
import lombok.extern.slf4j.Slf4j;
import org.apache.thrift.TException;

/**
 * Created with IntelliJ IDEA.
 * User: SuQiEr
 * Date:2017/7/10 0010
 * Time: 下午 7:57
 * To change this template use File | Settings | File Templates.
 */
@Slf4j
public class PersonServiceImpl implements PersonService.Iface {

    @Override
    public Person getPersonByUsername(String username) throws DataException, TException {
        log.info("getPersonByUsername username:{}", username);
        return new Person();
    }

    @Override
    public void savePerson(Person person) throws DataException, TException {
        log.info("savePerson person:{}",person);
    }
}
